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 "yes '$pw1' is the same as '$xyz'\n"; } $def = strcmp($xyz, $pw2); if ($def == 0) { echo "yep '$pw2' is the same as '$def'\n"; } $ghi = strcmp($pw1, $pw2); if ($ghi != 0) { echo "weird '$pw1' isn't the same as '$pw2'\n"; } else {echo "i am strcmp, and i declare that '$pw1' is the same as '$pw2'!!\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.0100.00718.68
8.3.50.0170.01022.91
8.3.40.0150.00018.83
8.3.30.0140.00019.09
8.3.20.0040.00420.21
8.3.10.0080.00023.54
8.3.00.0070.00419.25
8.2.180.0140.00716.75
8.2.170.0090.00622.96
8.2.160.0070.01120.30
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0150.00026.16
8.2.120.0070.00319.26
8.2.110.0030.00720.39
8.2.100.0090.00318.28
8.2.90.0000.01019.22
8.2.80.0000.00917.97
8.2.70.0070.00317.50
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0060.00318.34
8.2.30.0080.00018.07
8.2.20.0030.00517.70
8.2.10.0030.00518.02
8.2.00.0000.00717.79
8.1.280.0130.00325.92
8.1.270.0000.00823.96
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00621.86
8.1.230.0040.00819.07
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0040.00418.65
8.1.160.0040.00422.01
8.1.150.0040.00418.91
8.1.140.0070.00017.32
8.1.130.0070.00018.88
8.1.120.0000.00817.52
8.1.110.0030.00317.27
8.1.100.0030.00317.46
8.1.90.0040.00417.42
8.1.80.0040.00417.41
8.1.70.0030.00317.44
8.1.60.0000.00917.58
8.1.50.0000.00917.40
8.1.40.0000.00817.49
8.1.30.0050.00317.60
8.1.20.0040.00417.70
8.1.10.0000.00817.57
8.1.00.0030.00617.47
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.32
8.0.270.0000.00717.17
8.0.260.0030.00718.38
8.0.250.0000.00716.98
8.0.240.0090.00017.05
8.0.230.0030.00316.96
8.0.220.0030.00316.86
8.0.210.0000.00716.94
8.0.200.0030.00317.01
8.0.190.0000.00717.02
8.0.180.0040.00417.00
8.0.170.0060.00317.04
8.0.160.0070.00016.94
8.0.150.0000.00716.80
8.0.140.0040.00416.66
8.0.130.0060.00313.37
8.0.120.0000.00716.83
8.0.110.0040.00416.89
8.0.100.0040.00416.98
8.0.90.0030.00616.81
8.0.80.0110.01116.93
8.0.70.0000.00817.02
8.0.60.0040.00416.86
8.0.50.0040.00416.93
8.0.30.0120.00917.01
8.0.20.0140.00517.40
8.0.10.0040.00417.09
8.0.00.0140.00416.87
7.4.330.0050.00015.00
7.4.320.0030.00316.36
7.4.300.0030.00316.54
7.4.290.0040.00416.60
7.4.280.0060.00316.38
7.4.270.0000.00716.60
7.4.260.0030.00316.47
7.4.250.0030.00516.54
7.4.240.0060.00316.55
7.4.230.0030.00516.50
7.4.220.0140.00316.41
7.4.210.0060.01016.42
7.4.200.0050.00216.68
7.4.160.0100.00916.57
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0110.00716.47
7.4.120.0070.01016.57
7.4.110.0110.00616.55
7.4.100.0070.01016.64
7.4.90.0050.01316.46
7.4.80.0170.00719.39
7.4.70.0090.00816.48
7.4.60.0070.01016.31
7.4.50.0050.00816.38
7.4.40.0160.00016.30
7.4.30.0100.00716.13
7.4.20.0060.00916.27
7.4.10.0120.00616.50
7.4.00.0120.00715.97
7.3.330.0050.00013.27
7.3.320.0000.00613.22
7.3.310.0030.00316.59
7.3.300.0000.00716.29
7.3.290.0070.01016.36
7.3.280.0080.00816.39
7.3.270.0060.01117.40
7.3.260.0110.00816.44
7.3.250.0070.01016.42
7.3.240.0130.00616.38
7.3.230.0140.00416.39
7.3.210.0160.01216.34
7.3.200.0090.00919.39
7.3.190.0140.00216.39
7.3.180.0030.01216.18
7.3.170.0060.01016.23
7.3.160.0110.00516.23
7.3.150.0110.00616.26
7.3.140.0110.00516.35
7.3.130.0030.01216.15
7.3.120.0080.00816.53
7.3.110.0130.00416.09
7.3.100.0030.01516.32
7.3.90.0030.01316.27
7.3.80.0040.01116.21
7.3.70.0080.00816.19
7.3.60.0080.00916.13
7.3.50.0060.01316.23
7.3.40.0090.01016.32
7.3.30.0120.00316.19
7.3.20.0030.01316.07
7.3.10.0070.00816.47
7.3.00.0070.00716.61
7.2.330.0150.00316.63
7.2.320.0130.00916.74
7.2.310.0100.00716.37
7.2.300.0100.00716.53
7.2.290.0030.01316.65
7.2.280.0110.00516.48
7.2.270.0110.00616.36
7.2.260.0040.01216.25
7.2.250.0120.00616.57
7.2.240.0090.00916.32
7.2.230.0080.00916.54
7.2.220.0060.01016.41
7.2.210.0030.01316.50
7.2.200.0050.01316.27
7.2.190.0140.00316.32
7.2.180.0130.00716.33
7.2.170.0060.01016.24
7.2.160.0000.01716.48
7.2.150.0060.01416.73
7.2.140.0080.00816.22
7.2.130.0080.00716.75
7.2.120.0050.01016.72
7.2.110.0090.00616.79
7.2.100.0060.00616.73
7.2.90.0050.01016.79
7.2.80.0060.00716.69
7.2.70.0050.00916.77
7.2.60.0060.00916.75
7.2.50.0080.00616.73
7.2.40.0060.00816.73
7.2.30.0040.01016.87
7.2.20.0070.00816.70
7.2.10.0070.00816.69
7.2.00.0060.00917.25
7.1.330.0060.01115.41
7.1.320.0100.00715.29
7.1.310.0060.01215.26
7.1.300.0090.01215.31
7.1.290.0140.00715.19
7.1.280.0130.00315.22
7.1.270.0090.00615.41
7.1.260.0060.00915.18
7.1.250.0040.00915.52
7.1.240.0000.01515.16
7.1.230.0040.01315.23
7.1.220.0120.00415.27
7.1.210.0030.01215.06
7.1.200.0070.00715.54
7.1.190.0060.01015.29
7.1.180.0130.00415.41
7.1.170.0100.00815.32
7.1.160.0030.01515.20
7.1.150.0130.00315.36
7.1.140.0080.00815.27
7.1.130.0080.00815.51
7.1.120.0090.00615.34
7.1.110.0090.00615.34
7.1.100.0090.00516.78
7.1.90.0050.01315.27
7.1.80.0090.01215.34
7.1.70.0050.00816.13
7.1.60.0140.00817.41
7.1.50.0130.01016.18
7.1.40.0090.01215.38
7.1.30.0060.01715.23
7.1.20.0090.01315.36
7.1.10.0080.00315.51
7.1.00.0070.04418.81
7.0.330.0140.00014.81
7.0.320.0100.00614.84
7.0.310.0040.01114.83
7.0.300.0080.00814.94
7.0.290.0100.00614.97
7.0.280.0130.00914.98
7.0.270.0050.01015.04
7.0.260.0090.00614.99
7.0.250.0100.00514.80
7.0.240.0050.01114.85
7.0.230.0110.00714.90
7.0.220.0090.01215.03
7.0.210.0180.00315.09
7.0.200.0070.00815.69
7.0.190.0170.01214.89
7.0.180.0080.01214.93
7.0.170.0120.01014.75
7.0.160.0040.01514.94
7.0.150.0050.01114.89
7.0.140.0020.04718.55
7.0.130.0090.00914.76
7.0.120.0120.00814.93
7.0.110.0070.02717.51
7.0.100.0030.02817.47
7.0.90.0040.02717.51
7.0.80.0120.02917.45
7.0.70.0230.02817.37
7.0.60.0060.02317.50
7.0.50.0090.02117.44
7.0.40.0070.02217.22
7.0.30.0050.04917.22
7.0.20.0090.02117.26
7.0.10.0140.03517.17
7.0.00.0080.03417.28
5.6.400.0040.01215.67
5.6.390.0090.00915.47
5.6.380.0060.01215.65
5.6.370.0030.01715.64
5.6.360.0090.01015.79
5.6.350.0070.01115.76
5.6.340.0120.00615.81
5.6.330.0090.00915.75
5.6.320.0060.01215.74
5.6.310.0090.01315.73
5.6.300.0200.00715.93
5.6.290.0100.01515.66
5.6.280.0040.02315.86
5.6.270.0150.00615.71
5.6.260.0140.02318.08
5.6.250.0080.02818.18
5.6.240.0030.03318.03
5.6.230.0170.04218.19
5.6.220.0050.02717.97
5.6.210.0030.04118.14
5.6.200.0060.02618.03
5.6.190.0070.02618.20
5.6.180.0050.04718.00
5.6.170.0070.04218.16
5.6.160.0120.03018.14
5.6.150.0030.04418.07
5.6.140.0060.03018.13
5.6.130.0120.04218.04
5.6.120.0090.04418.04
5.6.110.0060.02918.10
5.6.100.0100.03118.16
5.6.90.0110.04118.15
5.6.80.0050.03717.69
5.6.70.0030.02817.82
5.6.60.0050.03317.91
5.6.50.0090.02517.90
5.6.40.0090.02117.85
5.6.30.0050.02717.82
5.6.20.0080.02317.79
5.6.10.0070.02117.85
5.6.00.0030.02417.80
5.5.380.0100.02316.62
5.5.370.0080.03116.59
5.5.360.0110.02816.61
5.5.350.0060.03316.48
5.5.340.0080.02316.79
5.5.330.0050.03416.89
5.5.320.0030.04816.81
5.5.310.0090.02217.08
5.5.300.0020.04116.80
5.5.290.0060.04316.80
5.5.280.0120.04516.64
5.5.270.0120.02216.68
5.5.260.0050.03316.68
5.5.250.0030.02616.67
5.5.240.0110.02016.50
5.5.230.0080.02316.70
5.5.220.0090.02016.40
5.5.210.0060.02416.46
5.5.200.0060.02716.37
5.5.190.0050.02716.33
5.5.180.0030.02816.42
5.5.170.0200.00015.78
5.5.160.0070.02316.25
5.5.150.0040.04816.49
5.5.140.0090.04116.39
5.5.130.0120.03716.32
5.5.120.0070.02216.46
5.5.110.0070.04516.45
5.5.100.0150.03216.63
5.5.90.0070.03216.44
5.5.80.0080.04116.58
5.5.70.0170.04216.46
5.5.60.0050.04516.47
5.5.50.0100.03916.57
5.5.40.0080.02016.42
5.5.30.0030.03416.23
5.5.20.0130.04016.32
5.5.10.0090.04316.30
5.5.00.0050.04416.26
5.4.450.0070.02516.02
5.4.440.0020.04215.88
5.4.430.0020.02615.99
5.4.420.0120.04316.07
5.4.410.0070.04015.81
5.4.400.0030.02515.86
5.4.390.0070.02915.64
5.4.380.0090.02815.68
5.4.370.0070.01815.66
5.4.360.0040.02615.75
5.4.350.0050.02415.71
5.4.340.0050.01815.65
5.4.330.0040.01112.55
5.4.320.0020.03815.65
5.4.310.0060.03815.62
5.4.300.0060.04315.58
5.4.290.0060.03415.51
5.4.280.0060.03915.65
5.4.270.0050.02215.82
5.4.260.0070.02715.78
5.4.250.0060.02215.64
5.4.240.0090.03915.65
5.4.230.0060.02415.69
5.4.220.0120.03415.75
5.4.210.0090.03515.71
5.4.200.0170.02015.68
5.4.190.0030.02915.71
5.4.180.0090.03315.82
5.4.170.0070.04215.57
5.4.160.0030.02315.75
5.4.150.0050.04715.74
5.4.140.0050.04214.49
5.4.130.0060.02014.35
5.4.120.0060.04014.29
5.4.110.0030.04014.43
5.4.100.0050.02814.49
5.4.90.0050.02314.56
5.4.80.0050.02114.27
5.4.70.0050.03314.44
5.4.60.0080.03814.36
5.4.50.0080.03214.43
5.4.40.0060.04014.44
5.4.30.0090.03414.45
5.4.20.0030.04014.45
5.4.10.0070.03414.43
5.4.00.0040.03314.01
5.3.290.0070.02313.82
5.3.280.0070.03013.79
5.3.270.0060.04113.73
5.3.260.0050.02013.89
5.3.250.0060.02013.89
5.3.240.0090.03913.84
5.3.230.0090.04113.72
5.3.220.0040.04113.79
5.3.210.0080.03213.67
5.3.200.0030.02413.76
5.3.190.0060.01913.77
5.3.180.0040.02213.78
5.3.170.0030.03913.94
5.3.160.0020.02613.70
5.3.150.0030.02313.90
5.3.140.0060.01913.83
5.3.130.0080.01813.89
5.3.120.0080.03713.88
5.3.110.0050.03213.81
5.3.100.0040.02913.54
5.3.90.0030.04713.55
5.3.80.0050.02813.29
5.3.70.0090.03813.45
5.3.60.0060.02413.45
5.3.50.0070.03813.46
5.3.40.0050.02013.38
5.3.30.0090.01713.46
5.3.20.0090.03013.37
5.3.10.0120.01813.18
5.3.00.0040.04113.18
5.2.170.0080.03012.05
5.2.160.0030.03012.08
5.2.150.0020.03612.02
5.2.140.0060.01811.98
5.2.130.0110.01311.97
5.2.120.0070.01512.00
5.2.110.0020.02212.06
5.2.100.0050.01712.04
5.2.90.0070.03312.04
5.2.80.0030.01812.06
5.2.70.0040.03412.01
5.2.60.0060.01811.96
5.2.50.0030.02411.99
5.2.40.0030.03112.09
5.2.30.0070.03111.95
5.2.20.0030.01811.87
5.2.10.0070.02811.89
5.2.00.0050.02911.85
5.1.60.0000.01711.49
5.1.50.0060.02111.50
5.1.40.0070.02511.59
5.1.30.0070.02611.66
5.1.20.0070.02811.62
5.1.10.0020.01811.71
5.1.00.0040.01911.47
5.0.50.0020.01711.08
5.0.40.0030.02511.08
5.0.30.0060.01811.08
5.0.20.0020.01811.08
5.0.10.0030.02511.08
5.0.00.0000.03011.08
4.4.90.0040.01311.08
4.4.80.0030.01011.08
4.4.70.0010.02111.08
4.4.60.0030.00811.08
4.4.50.0050.01311.08
4.4.40.0030.02311.08
4.4.30.0000.01611.08
4.4.20.0030.01111.08
4.4.10.0010.01011.08
4.4.00.0000.01811.08
4.3.110.0030.01611.08
4.3.100.0040.01311.08
4.3.90.0010.01511.08
4.3.80.0080.02011.08
4.3.70.0040.01411.08
4.3.60.0030.01811.08
4.3.50.0050.01111.08
4.3.40.0030.02311.08
4.3.30.0010.01611.08
4.3.20.0020.01811.08
4.3.10.0030.01611.08
4.3.00.0050.01611.08

preferences:
40.26 ms | 401 KiB | 5 Q