3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xyz[]="a"; var_dump($xyz); if($xyz != '') { echo "xyz is not empty! good to go!\n"; $pw1 = 'my cool password keep it secrete please'; $pw2 = 'some other password'; $abc = strcmp($xyz, $pw1); if ($abc == 0) { echo "LOLPHP: yes '$pw1' is the same as '$xyz'\n"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "LOLPHP: yep '$pw2' is the same as '$xyz'\n"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "'$pw1' isn't the same as '$pw2'\n"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!\n"; } $jkl = strcmp($xyz, $xyz); echo "jkl = $jkl\n"; }

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.3.60.0070.00716.63
8.3.50.0160.00322.84
8.3.40.0070.00718.71
8.3.30.0100.00318.95
8.3.20.0040.00420.39
8.3.10.0040.00423.51
8.3.00.0090.00019.26
8.2.180.0150.00616.50
8.2.170.0090.00622.96
8.2.160.0070.00720.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00319.17
8.2.110.0030.00720.47
8.2.100.0090.00317.84
8.2.90.0040.00417.88
8.2.80.0080.00018.92
8.2.70.0030.00517.63
8.2.60.0050.00317.75
8.2.50.0060.00317.75
8.2.40.0000.00819.48
8.2.30.0050.00218.13
8.2.20.0000.00717.86
8.2.10.0040.00418.18
8.2.00.0020.00517.87
8.1.280.0120.00425.92
8.1.270.0040.00423.93
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00718.86
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.35
8.1.180.0000.00918.10
8.1.170.0040.00419.07
8.1.160.0040.00422.07
8.1.150.0040.00418.95
8.1.140.0070.00017.36
8.1.130.0000.00717.82
8.1.120.0000.00717.37
8.1.110.0040.00417.37
8.1.100.0040.00417.45
8.1.90.0080.00017.44
8.1.80.0070.00017.50
8.1.70.0030.00317.45
8.1.60.0000.00817.49
8.1.50.0030.00517.50
8.1.40.0000.00817.32
8.1.30.0050.00317.60
8.1.20.0030.00517.64
8.1.10.0000.00817.56
8.1.00.0040.00417.40
8.0.300.0080.00018.77
8.0.290.0080.00016.63
8.0.280.0070.00018.44
8.0.270.0070.00017.16
8.0.260.0000.00717.21
8.0.250.0030.00316.88
8.0.240.0000.00817.08
8.0.230.0070.00016.96
8.0.220.0070.00016.95
8.0.210.0030.00316.83
8.0.200.0070.00017.04
8.0.190.0040.00417.00
8.0.180.0050.00217.00
8.0.170.0000.00817.01
8.0.160.0070.00016.93
8.0.150.0040.00416.93
8.0.140.0000.00816.84
8.0.130.0000.00613.37
8.0.120.0040.00416.84
8.0.110.0080.00016.98
8.0.100.0000.00716.91
8.0.90.0000.00916.99
8.0.80.0040.01116.98
8.0.70.0040.00416.97
8.0.60.0080.00016.95
8.0.50.0070.00016.98
8.0.30.0110.00817.12
8.0.20.0090.01117.40
8.0.10.0000.00816.97
8.0.00.0090.01016.92
7.4.330.0060.00015.00
7.4.320.0030.00316.50
7.4.300.0030.00316.64
7.4.290.0030.00616.48
7.4.280.0000.00916.51
7.4.270.0030.00316.56
7.4.260.0070.00016.58
7.4.250.0080.00016.57
7.4.240.0030.00516.63
7.4.230.0030.00316.50
7.4.220.0180.00716.67
7.4.210.0060.01016.57
7.4.200.0030.00316.53
7.4.160.0110.01116.58
7.4.150.0150.00717.40
7.4.140.0090.00817.86
7.4.130.0080.00916.48
7.4.120.0090.00816.55
7.4.110.0100.00616.75
7.4.100.0120.00616.52
7.4.90.0130.00316.45
7.4.80.0080.01119.39
7.4.70.0120.00616.57
7.4.60.0060.01016.50
7.4.50.0070.00616.47
7.4.40.0070.01015.90
7.4.30.0060.01516.20
7.4.20.0080.00816.25
7.4.10.0120.00415.93
7.4.00.0090.00815.61
7.3.330.0000.00513.24
7.3.320.0050.00013.28
7.3.310.0000.00716.40
7.3.300.0030.00316.27
7.3.290.0100.01016.36
7.3.280.0070.00816.40
7.3.270.0100.01017.40
7.3.260.0100.00716.74
7.3.250.0120.00516.49
7.3.240.0140.00316.76
7.3.230.0000.01716.42
7.3.210.0100.01016.50
7.3.200.0080.00819.39
7.3.190.0130.00616.41
7.3.180.0100.00816.29
7.3.170.0090.00616.40
7.3.160.0040.01116.39
7.3.150.0070.01516.25
7.3.140.0030.01316.36
7.3.130.0120.00515.53
7.3.120.0100.00715.48
7.3.110.0110.00415.21
7.3.100.0070.00915.36
7.3.90.0060.00715.33
7.3.80.0050.00815.47
7.3.70.0050.01015.29
7.3.60.0040.01215.27
7.3.50.0060.01115.24
7.3.40.0070.00615.27
7.3.30.0090.00715.25
7.3.20.0060.00716.58
7.3.10.0030.01016.52
7.3.00.0050.00716.63
7.2.330.0190.00316.59
7.2.320.0080.00816.67
7.2.310.0060.01016.61
7.2.300.0050.01116.25
7.2.290.0150.00016.47
7.2.280.0030.01416.66
7.2.270.0130.00316.46
7.2.260.0090.00615.61
7.2.250.0080.01015.53
7.2.240.0050.01215.41
7.2.230.0050.01015.51
7.2.220.0070.00815.48
7.2.210.0050.01115.53
7.2.200.0090.00715.52
7.2.190.0090.00715.47
7.2.180.0040.01415.46
7.2.170.0090.00515.44
7.2.160.0080.00915.84
7.2.150.0060.01316.70
7.2.140.0140.00316.63
7.2.130.0080.00816.76
7.2.120.0030.01016.88
7.2.110.0090.00816.74
7.2.100.0210.00716.31
7.2.90.0580.00616.49
7.2.80.0080.01016.47
7.2.70.1850.00816.47
7.2.60.1020.00916.41
7.2.50.1290.01016.58
7.2.40.1270.00816.46
7.2.30.1100.01016.39
7.2.20.0950.00916.42
7.2.10.1080.00816.39
7.2.00.0910.00916.40
7.1.330.0060.00815.86
7.1.320.0070.00715.67
7.1.310.0040.01115.67
7.1.300.0010.01415.70
7.1.290.0010.01215.66
7.1.280.0070.00715.59
7.1.270.0110.00315.57
7.1.260.0090.00615.59
7.1.250.0070.00615.68
7.1.240.0030.01015.42
7.1.230.0040.01015.60
7.1.220.0100.00914.88
7.1.210.0150.00514.92
7.1.200.0250.00715.17
7.1.190.3020.01014.95
7.1.180.2420.00614.97
7.1.170.1830.00614.95
7.1.160.2060.00614.96
7.1.150.1830.00714.94
7.1.140.1830.00714.84
7.1.130.1710.00814.86
7.1.120.1470.01014.89
7.1.110.1580.00914.93
7.1.100.1180.00414.77
7.1.90.0740.00714.88
7.1.80.0730.01014.95
7.1.70.0340.01115.34
7.1.60.0470.00920.49
7.1.50.0410.00819.98
7.1.40.0480.01021.06
7.1.30.0480.01520.99
7.1.20.0470.01221.10
7.1.10.0360.00415.07
7.1.00.0250.02316.90
7.0.330.0140.00615.13
7.0.320.0050.00715.12
7.0.310.0110.00614.73
7.0.300.2530.01014.61
7.0.290.2090.00714.70
7.0.280.1610.00514.62
7.0.270.1690.00514.63
7.0.260.1590.00714.69
7.0.250.1380.00914.62
7.0.240.1120.00414.64
7.0.230.0600.00714.64
7.0.220.0710.00814.61
7.0.210.0600.00714.71
7.0.200.0370.01015.25
7.0.190.0470.00714.61
7.0.180.0490.00414.60
7.0.170.0400.00914.61
7.0.160.0510.00614.53
7.0.150.0320.00914.51
7.0.140.0310.02416.53
7.0.130.1060.01414.77
7.0.120.0370.00514.59
7.0.110.0310.02516.06
7.0.100.0260.02416.02
7.0.90.0270.02316.11
7.0.80.0280.02115.94
7.0.70.0230.02316.03
7.0.60.0250.02815.97
7.0.50.0310.02216.05
7.0.40.0220.02915.44
7.0.30.0280.01815.43
7.0.20.0240.02615.46
7.0.10.0240.02015.46
7.0.00.0270.02615.43
5.6.400.0060.01215.14
5.6.390.0040.01215.12
5.6.380.0080.00714.77
5.6.370.0060.00914.89
5.6.360.0130.00715.00
5.6.350.0090.01014.96
5.6.340.0070.01114.71
5.6.330.0100.00714.83
5.6.320.0080.01014.90
5.6.310.0090.01014.84
5.6.300.0060.01415.04
5.6.290.0060.01014.69
5.6.280.0090.02216.40
5.6.270.0070.01114.86
5.6.260.0050.02916.30
5.6.250.0110.01716.21
5.6.240.0110.02416.31
5.6.230.0090.02716.30
5.6.220.0080.02016.30
5.6.210.0120.02516.32
5.6.200.0060.02116.25
5.6.190.0100.02616.26
5.6.180.0130.02016.28
5.6.170.0130.02416.23
5.6.160.0100.02616.17
5.6.150.0060.02916.25
5.6.140.0080.03016.32
5.6.130.0150.02516.22
5.6.120.0070.03016.16
5.6.110.0090.02216.29
5.6.100.0130.02716.35
5.6.90.0100.02516.41
5.6.80.0090.02616.07
5.6.70.0100.02516.09
5.6.60.0090.01616.08
5.6.50.0110.02216.20
5.6.40.0130.02216.03
5.6.30.0140.01916.18
5.6.20.0080.02416.01
5.6.10.0070.01916.06
5.6.00.0070.02416.04
5.5.380.0080.03315.62
5.5.370.0120.02815.65
5.5.360.0130.02915.86
5.5.350.0080.02515.62
5.5.340.0110.02715.62
5.5.330.0110.02915.90
5.5.320.0080.03415.91
5.5.310.0130.02815.86
5.5.300.0100.03315.76
5.5.290.0120.02815.75
5.5.280.0130.03215.74
5.5.270.0060.03615.99
5.5.260.0080.03515.86
5.5.250.0080.03415.66
5.5.240.0140.02715.57
5.5.230.0080.03715.56
5.5.220.0100.02115.62
5.5.210.0080.03215.61
5.5.200.0090.03315.51
5.5.190.0130.02815.52
5.5.180.0090.03215.73
5.5.170.0110.01314.97
5.5.160.0090.01815.61
5.5.150.0090.01815.68
5.5.140.0110.01715.68
5.5.130.0040.02315.58
5.5.120.0100.01715.62
5.5.110.0090.01815.59
5.5.100.0120.02915.65
5.5.90.0110.01915.65
5.5.80.0060.03015.44
5.5.70.0040.03115.45
5.5.60.0100.01715.67
5.5.50.0110.03015.59
5.5.40.0040.03515.39
5.5.30.0100.02815.56
5.5.20.0060.02015.54
5.5.10.0100.01715.67
5.5.00.0090.02315.67
5.4.450.0100.03014.42
5.4.440.0100.02114.26
5.4.430.0070.03214.34
5.4.420.0080.02714.27
5.4.410.0100.02814.17
5.4.400.0130.02714.13
5.4.390.0080.03114.08
5.4.380.0090.01914.08
5.4.370.0040.03514.22
5.4.360.0120.02914.11
5.4.350.0110.02814.16
5.4.340.0070.03014.08
5.4.330.0090.00711.74
5.4.320.0130.01214.18
5.4.310.0060.01714.12
5.4.300.0050.01814.23
5.4.290.0090.01414.27
5.4.280.0070.02014.13
5.4.270.0080.02014.16
5.4.260.0130.02514.18
5.4.250.0110.01214.27
5.4.240.0060.02714.02
5.4.230.0030.02814.10
5.4.220.0040.02014.13
5.4.210.0060.02014.03
5.4.200.0090.02814.13
5.4.190.0080.02214.06
5.4.180.0110.02614.19
5.4.170.0120.01414.12
5.4.160.0090.01314.09
5.4.150.0070.01814.10
5.4.140.0100.01413.30
5.4.130.0050.01713.35
5.4.120.0030.02013.24
5.4.110.0060.01713.36
5.4.100.0060.01813.31
5.4.90.0060.01613.33
5.4.80.0050.01813.26
5.4.70.0070.02113.25
5.4.60.0060.01913.26
5.4.50.0090.01313.21
5.4.40.0090.01413.27
5.4.30.0050.01613.21
5.4.20.0100.01313.30
5.4.10.0090.01313.33
5.4.00.0080.02013.05

preferences:
34.72 ms | 401 KiB | 5 Q