3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=10; $b=16; $a+=+$b-$b=$a; echo(sprintf('a=%d;b=%d', $a, $b));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.1.90.0000.00717.45
8.1.80.0030.00317.39
8.1.70.0030.00317.35
8.1.60.0000.00817.39
8.1.50.0040.00417.46
8.1.40.0050.00317.42
8.1.30.0040.00417.58
8.1.20.0030.00517.55
8.1.10.0030.00517.53
8.1.00.0040.00417.42
8.0.220.0000.00716.75
8.0.210.0030.00516.70
8.0.200.0030.00316.80
8.0.190.0000.00716.87
8.0.180.0050.00216.87
8.0.170.0050.00216.80
8.0.160.0050.00316.78
8.0.150.0030.00316.75
8.0.140.0060.00316.79
8.0.130.0000.00513.14
8.0.120.0040.00416.83
8.0.110.0040.00416.76
8.0.100.0040.00416.80
8.0.90.0060.00113.94
8.0.80.0030.01216.70
8.0.70.0040.00416.85
8.0.60.0070.00016.71
8.0.50.0000.00716.83
8.0.30.0070.01017.01
8.0.20.0100.00717.26
8.0.10.0110.00316.88
8.0.00.0100.00916.84
7.4.300.0040.00416.43
7.4.290.0030.00316.32
7.4.280.0040.00416.42
7.4.270.0000.00716.51
7.4.260.0090.00016.46
7.4.250.0050.00216.53
7.4.240.0000.00716.50
7.4.230.0000.00716.27
7.4.220.0160.00416.52
7.4.210.0090.00916.54
7.4.200.0030.00316.34
7.4.160.0080.00616.47
7.4.150.0130.00516.97
7.4.140.0060.01017.36
7.4.130.0100.01016.39
7.4.120.0080.00816.28
7.4.110.0060.01016.44
7.4.100.0100.00716.48
7.4.90.0080.01216.39
7.4.80.0130.00517.50
7.4.70.0070.00916.36
7.4.60.0060.01216.35
7.4.50.0120.00616.36
7.4.40.0100.00916.37
7.4.30.0080.01116.28
7.4.20.0090.01116.36
7.4.10.0090.00916.13
7.4.00.0080.00915.82
7.3.330.0030.00313.13
7.3.320.0000.00613.23
7.3.310.0020.00516.41
7.3.300.0000.00716.14
7.3.290.0050.00216.20
7.3.280.0100.00616.32
7.3.270.0080.01016.90
7.3.260.0110.00616.34
7.3.250.0110.00616.41
7.3.240.0070.00916.27
7.3.230.0070.01016.35
7.3.220.0090.01216.36
7.3.210.0120.00816.38
7.3.200.0110.00717.35
7.3.190.0090.00816.24
7.3.180.0080.01016.36
7.3.170.0090.00816.38
7.3.160.0080.00916.36
7.3.150.0130.00616.38
7.3.140.0080.01116.26
7.3.130.0100.00716.09
7.3.120.0100.00715.82
7.3.110.0080.00915.75
7.3.100.0100.00815.81
7.3.90.0070.01015.76
7.3.80.0080.00815.64
7.3.70.0080.00815.59
7.3.60.0080.00915.61
7.3.50.0080.00815.59
7.3.40.0070.00915.49
7.3.30.0070.00815.62
7.3.20.0100.00716.00
7.3.10.0090.00815.90
7.3.00.0130.00615.94
7.2.340.0140.01416.20
7.2.330.0190.00516.30
7.2.320.0120.01016.21
7.2.310.0180.01116.29
7.2.300.0150.00816.29
7.2.290.0130.01016.12
7.2.280.0130.00816.21
7.2.270.0130.00916.38
7.2.260.0080.01216.06
7.2.250.0100.01015.88
7.2.240.0090.01115.86
7.2.230.0100.00915.83
7.2.220.0080.01115.84
7.2.210.0090.00915.75
7.2.200.0110.00815.67
7.2.190.0090.00915.67
7.2.180.0080.00915.59
7.2.170.0110.00815.69
7.2.160.0110.00715.83
7.2.150.0130.01015.78
7.2.140.0110.00915.92
7.2.130.0100.01015.94
7.2.120.0110.00915.85
7.2.110.0150.00815.86
7.2.100.0120.01015.93
7.2.90.0190.01115.94
7.2.80.0120.00915.88
7.2.70.0100.00815.85
7.2.60.0130.00715.99
7.2.50.0100.01215.78
7.2.40.0120.00816.06
7.2.30.0090.01015.94
7.2.20.0130.00915.91
7.2.10.0130.00815.89
7.2.00.0110.00916.28
7.1.330.0150.00815.45
7.1.320.0130.00815.24
7.1.310.0150.00915.29
7.1.300.0150.00715.19
7.1.290.0130.00715.09
7.1.280.0120.00915.11
7.1.270.0140.00615.08
7.1.260.0140.00815.09
7.1.250.0230.00914.94
7.1.240.0140.00914.85
7.1.230.0140.00914.86
7.1.220.0140.00914.98
7.1.210.0220.00914.89
7.1.200.0140.01114.96
7.1.190.0150.01014.92
7.1.180.0140.00814.87
7.1.170.0140.00814.92
7.1.160.0140.00814.87
7.1.150.0140.00614.90
7.1.140.0160.00714.93
7.1.130.0160.00814.80
7.1.120.0160.00714.88
7.1.110.0130.00814.89
7.1.100.0190.00614.91
7.1.90.0170.00814.93
7.1.80.0110.00914.98
7.1.70.0140.00715.15
7.1.60.0140.00715.46
7.1.50.0130.00814.96
7.1.40.0160.00814.96
7.1.30.0140.01014.93
7.1.20.0160.00914.95
7.1.10.0150.00714.98
7.1.00.0110.01615.67
7.0.330.0150.00814.58
7.0.320.0190.00714.49
7.0.310.0120.00714.55
7.0.300.0100.01114.60
7.0.290.0130.00814.56
7.0.280.0150.00514.63
7.0.270.0170.00914.49
7.0.260.0130.00814.55
7.0.250.0120.00814.63
7.0.240.0130.00714.65
7.0.230.0140.00714.70
7.0.220.0170.00514.73
7.0.210.0310.00714.60
7.0.200.0150.00814.71
7.0.190.0130.00914.59
7.0.180.0140.00714.64
7.0.170.0150.00814.66
7.0.160.0150.00814.66
7.0.150.0120.00814.56
7.0.140.0240.00914.64
7.0.130.0150.00914.67
7.0.120.0130.00814.63
7.0.110.0110.01014.61
7.0.100.0120.00914.62
7.0.90.0150.00714.63
7.0.80.0150.01015.15
7.0.70.0150.01115.15
7.0.60.0140.00915.17
7.0.50.0120.01215.16
7.0.40.0150.00915.16
7.0.30.0130.01115.21
7.0.20.0170.00915.17
7.0.10.0170.01015.16
7.0.00.0170.01615.17
5.6.400.0150.00915.21
5.6.390.0130.01015.19
5.6.380.0130.01015.23
5.6.370.0120.00915.30
5.6.360.0120.00915.36
5.6.350.0080.01115.27
5.6.340.0120.01015.33
5.6.330.0130.01015.38
5.6.320.0110.01015.29
5.6.310.0120.01015.26
5.6.300.0140.00915.27
5.6.290.0150.00915.35
5.6.280.0130.01515.89
5.6.270.0100.01115.38
5.6.260.0140.00715.35
5.6.250.0120.00915.31
5.6.240.0150.00915.26
5.6.230.0100.01415.83
5.6.220.0100.01515.77
5.6.210.0160.01115.77
5.6.200.0130.01215.79
5.6.190.0130.01215.86
5.6.180.0140.01315.87
5.6.170.0130.01215.78
5.6.160.0120.01715.84
5.6.150.0130.01515.85
5.6.140.0120.01915.86
5.6.130.0120.01615.80
5.6.120.0120.01615.82
5.6.110.0160.01515.83
5.6.100.0150.01615.83
5.6.90.0130.01815.87
5.6.80.0150.01315.67
5.6.70.0110.01615.77
5.6.60.0120.01715.73
5.6.50.0120.01515.72
5.6.40.0120.01515.75
5.6.30.0130.01615.71
5.6.20.0140.01515.70
5.6.10.0130.01515.69
5.6.00.0120.01615.68
5.5.380.0110.01115.26
5.5.370.0120.01315.87
5.5.360.0150.01215.74
5.5.350.0120.01415.71
5.5.340.0140.01415.91
5.5.330.0120.01515.85
5.5.320.0130.01315.86
5.5.310.0120.01315.76
5.5.300.0110.02015.79
5.5.290.0140.01415.76
5.5.280.0140.01615.84
5.5.270.0130.01615.79
5.5.260.0140.01315.75
5.5.250.0140.01715.77
5.5.240.0120.01515.67
5.5.230.0130.01615.65
5.5.220.0130.01315.67
5.5.210.0140.01315.67
5.5.200.0150.01315.67
5.5.190.0130.01515.67
5.5.180.0130.01715.65
5.5.170.0130.00915.15
5.5.160.0140.01415.65
5.5.150.0100.02115.66
5.5.140.0140.01615.71
5.5.130.0160.01415.60
5.5.120.0110.01815.58
5.5.110.0110.01815.65
5.5.100.0130.01715.69
5.5.90.0140.01615.68
5.5.80.0100.02015.68
5.5.70.0130.01515.60
5.5.60.0150.01615.57
5.5.50.0150.01515.80
5.5.40.0130.01815.66
5.5.30.0140.01615.64
5.5.20.0160.01415.72
5.5.10.0130.01615.58
5.5.00.0110.01615.49
5.4.450.0090.01113.26
5.4.440.0120.01313.19
5.4.430.0120.01413.25
5.4.420.0130.01313.23
5.4.410.0110.01413.16
5.4.400.0120.01313.18
5.4.390.0110.01213.16
5.4.380.0110.01113.15
5.4.370.0100.01513.19
5.4.360.0100.01513.12
5.4.350.0100.01513.15
5.4.340.0100.01313.19
5.4.330.0090.00712.43
5.4.320.0080.01413.17
5.4.310.0120.01313.19
5.4.300.0110.01113.16
5.4.290.0130.00713.15
5.4.280.0110.01313.15
5.4.270.0110.01513.14
5.4.260.0090.01313.12
5.4.250.0110.01313.16
5.4.240.0080.01613.11
5.4.230.0120.01413.13
5.4.220.0140.01513.08
5.4.210.0110.01313.12
5.4.200.0090.01413.11
5.4.190.0100.01413.15
5.4.180.0130.01113.11
5.4.170.0090.01513.07
5.4.160.0100.01213.11
5.4.150.0120.01013.15
5.4.140.0100.01412.88
5.4.130.0100.01212.87
5.4.120.0100.01512.86
5.4.110.0090.01412.84
5.4.100.0110.01212.89
5.4.90.0110.01212.83
5.4.80.0100.01412.87
5.4.70.0110.01312.81
5.4.60.0090.01412.85
5.4.50.0100.01412.81
5.4.40.0100.01312.85
5.4.30.0110.01412.88
5.4.20.0110.01312.88
5.4.10.0100.01012.84
5.4.00.0100.01412.76
5.3.290.0130.01012.97
5.3.280.0100.01712.91
5.3.270.0100.01512.90
5.3.260.0110.01512.86
5.3.250.0100.01112.88
5.3.240.0120.01412.80
5.3.230.0120.01412.84
5.3.220.0110.01212.84
5.3.210.0100.01412.88
5.3.200.0100.01512.83
5.3.190.0110.01412.89
5.3.180.0100.01512.95
5.3.170.0130.01512.91
5.3.160.0100.01312.90
5.3.150.0120.01412.89
5.3.140.0110.01412.92
5.3.130.0110.01512.92
5.3.120.0130.01212.91
5.3.110.0120.01512.86
5.3.100.0110.01112.83
5.3.90.0120.01412.79
5.3.80.0110.01212.69
5.3.70.0090.01512.68
5.3.60.0130.01312.80
5.3.50.0100.01612.70
5.3.40.0110.01312.70
5.3.30.0130.00912.75
5.3.20.0090.01512.78
5.3.10.0100.01012.61
5.3.00.0120.01212.66
5.2.170.0090.01112.03
5.2.160.0100.01212.06
5.2.150.0070.01212.06
5.2.140.0100.01112.00
5.2.130.0090.00912.04
5.2.120.0090.01312.03
5.2.110.0080.01312.04
5.2.100.0100.00812.05
5.2.90.0080.01312.01
5.2.80.0090.01111.99
5.2.70.0090.00911.98
5.2.60.0090.00811.99
5.2.50.0070.01311.99
5.2.40.0080.01311.96
5.2.30.0080.01312.00
5.2.20.0060.01311.98
5.2.10.0080.01111.92
5.2.00.0080.01211.95
5.1.60.0060.01211.72
5.1.50.0090.00911.75
5.1.40.0090.01111.74
5.1.30.0100.01111.77
5.1.20.0080.01011.76
5.1.10.0080.01311.74
5.1.00.0110.00911.73
5.0.50.0070.00911.59
5.0.40.0070.00911.58
5.0.30.0080.01111.54
5.0.20.0060.00911.54
5.0.10.0070.00811.53
5.0.00.0070.01011.52
4.4.90.0050.00411.46
4.4.80.0050.00511.46
4.4.70.0040.00711.46
4.4.60.0020.00911.46
4.4.50.0060.00611.46
4.4.40.0060.00911.46
4.4.30.0070.00411.46
4.4.20.0040.00711.46
4.4.10.0040.00811.46
4.4.00.0040.00811.46
4.3.110.0030.00711.46
4.3.100.0050.00611.46
4.3.90.0050.00611.46
4.3.80.0050.00911.46
4.3.70.0040.00711.46
4.3.60.0030.00711.46
4.3.50.0050.00711.46
4.3.40.0050.00811.46
4.3.30.0030.00711.46
4.3.20.0050.00511.46
4.3.10.0030.00611.46
4.3.00.0030.00711.46

preferences:
13.44 ms | 406 KiB | 5 Q