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 '$xyz'\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.40.0120.00318.75
8.3.30.0070.00718.92
8.3.20.0070.00020.26
8.3.10.0080.00023.73
8.3.00.0030.00719.38
8.2.170.0100.00722.96
8.2.160.0100.00720.25
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00726.16
8.2.120.0090.00021.05
8.2.110.0030.00621.03
8.2.100.0090.00317.84
8.2.90.0030.00518.03
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0050.00518.21
8.2.30.0040.00418.16
8.2.20.0030.00617.79
8.2.10.0060.00318.16
8.2.00.0060.00317.78
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.66
8.1.230.0060.00620.91
8.1.220.0000.00817.78
8.1.210.0030.00618.83
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0060.00318.61
8.1.160.0040.00421.88
8.1.150.0000.00718.98
8.1.140.0040.00417.50
8.1.130.0030.00317.74
8.1.120.0030.00317.35
8.1.110.0080.00017.30
8.1.100.0000.00717.41
8.1.90.0070.00017.41
8.1.80.0000.00717.45
8.1.70.0050.00317.46
8.1.60.0030.00617.57
8.1.50.0040.00417.44
8.1.40.0000.00717.55
8.1.30.0050.00317.66
8.1.20.0040.00417.64
8.1.10.0000.00717.49
8.1.00.0000.00717.38
8.0.300.0080.00019.90
8.0.290.0050.00316.63
8.0.280.0030.00318.51
8.0.270.0030.00317.28
8.0.260.0070.00017.29
8.0.250.0030.00317.00
8.0.240.0060.00317.00
8.0.230.0040.00417.03
8.0.220.0070.00016.91
8.0.210.0070.00016.89
8.0.200.0070.00017.02
8.0.190.0000.00716.98
8.0.180.0070.00016.91
8.0.170.0000.00816.94
8.0.160.0070.00016.96
8.0.150.0030.00316.95
8.0.140.0030.00316.86
8.0.130.0050.00313.34
8.0.120.0060.00316.82
8.0.110.0040.00416.93
8.0.100.0000.00716.79
8.0.90.0040.00416.82
8.0.80.0120.00316.82
8.0.70.0050.00216.89
8.0.60.0080.00016.78
8.0.50.0040.00316.83
8.0.30.0100.00817.01
8.0.20.0080.01317.40
8.0.10.0070.00016.86
8.0.00.0110.00616.74
7.4.330.0000.00515.09
7.4.320.0030.00316.52
7.4.300.0060.00016.51
7.4.290.0060.00016.48
7.4.280.0100.00016.51
7.4.270.0000.00716.52
7.4.260.0000.00716.48
7.4.250.0070.00016.47
7.4.240.0020.00716.46
7.4.230.0030.00316.44
7.4.220.0030.00316.44
7.4.210.0090.00616.54
7.4.200.0040.00416.58
7.4.160.0070.00716.64
7.4.150.0080.00817.40
7.4.140.0060.01217.86
7.4.130.0100.00816.73
7.4.120.0120.00916.52
7.4.110.0080.00816.64
7.4.100.0100.00916.59
7.4.90.0060.01216.66
7.4.80.0170.00419.39
7.4.70.0070.01016.54
7.4.60.0090.00916.36
7.4.50.0050.00716.43
7.4.40.0090.01216.21
7.4.30.0060.01016.26
7.4.20.0150.00716.37
7.4.10.0110.00615.86
7.4.00.0060.01115.80
7.3.330.0020.00213.14
7.3.320.0030.00313.20
7.3.310.0030.00316.48
7.3.300.0000.00716.49
7.3.290.0060.00916.48
7.3.280.0050.01116.38
7.3.270.0070.01017.40
7.3.260.0110.01516.51
7.3.250.0120.00616.35
7.3.240.0120.00416.39
7.3.230.0090.00816.39
7.3.210.0110.01116.44
7.3.200.0110.00519.39
7.3.190.0060.01016.34
7.3.180.0120.00516.34
7.3.170.0120.00916.33
7.3.160.0070.01416.09
7.3.150.0140.00716.49
7.3.140.0000.01716.26
7.3.130.0090.00915.58
7.3.120.0090.00715.31
7.3.110.0090.00915.26
7.3.100.0070.00715.23
7.3.90.0080.00715.32
7.3.80.0030.00915.46
7.3.70.0090.00415.15
7.3.60.0060.00915.30
7.3.50.0060.00915.25
7.3.40.0070.00615.32
7.3.30.0040.00715.29
7.3.20.0060.00916.47
7.3.10.0080.00716.47
7.3.00.0030.01316.56
7.2.330.0120.00916.55
7.2.320.0040.01216.72
7.2.310.0070.01016.20
7.2.300.0080.00916.39
7.2.290.0030.01316.61
7.2.280.0130.00416.34
7.2.270.0040.01216.33
7.2.260.0070.01015.91
7.2.250.0090.00815.56
7.2.240.0110.00615.54
7.2.230.0080.00715.50
7.2.220.0070.00815.56
7.2.210.0070.00815.53
7.2.200.0050.01315.54
7.2.190.0120.00415.44
7.2.180.0040.01115.36
7.2.170.0090.00715.35
7.2.160.0090.00815.50
7.2.150.0100.00516.72
7.2.140.0060.00616.78
7.2.130.0070.00916.73
7.2.120.0070.00916.80
7.2.110.0080.00816.70
7.2.100.0070.00816.82
7.2.90.0080.00716.76
7.2.80.0060.00816.70
7.2.70.0060.01116.85
7.2.60.0080.00916.74
7.2.50.0040.01216.83
7.2.40.0090.00816.81
7.2.30.0080.00916.71
7.2.20.0040.00816.78
7.2.10.0080.00716.96
7.2.00.0050.01016.70
7.1.330.0100.00815.67
7.1.320.0090.00615.54
7.1.310.0070.00815.54
7.1.300.0050.01015.68
7.1.290.0080.00615.55
7.1.280.0060.00915.64
7.1.270.0060.00815.62
7.1.260.0050.00915.62
7.1.250.0060.00815.67
7.1.240.0080.01015.41
7.1.230.0080.00615.55
7.1.220.0020.01215.59
7.1.210.0060.01215.38
7.1.200.0040.01115.52
7.1.190.0060.00815.56
7.1.180.0090.00615.49
7.1.170.0080.00615.66
7.1.160.0070.00715.59
7.1.150.0070.00715.39
7.1.140.0060.00715.48
7.1.130.0080.00515.63
7.1.120.0030.01015.59
7.1.110.0060.00615.62
7.1.100.0030.01016.47
7.1.90.0050.00915.53
7.1.80.0080.00815.53
7.1.70.0070.00716.05
7.1.60.0080.01216.99
7.1.50.0080.00916.08
7.1.40.0080.00815.44
7.1.30.0050.01115.52
7.1.20.0050.00815.55
7.1.10.0060.01115.65
7.1.00.0080.02917.79
7.0.330.0040.00914.96
7.0.320.0030.01015.12
7.0.310.0020.01215.15
7.0.300.0080.00515.07
7.0.290.0060.00915.18
7.0.280.0070.00615.19
7.0.270.0080.00615.17
7.0.260.0060.00715.24
7.0.250.0050.00915.15
7.0.240.0070.00615.32
7.0.230.0070.00915.06
7.0.220.0040.01115.20
7.0.210.0040.01015.24
7.0.200.0060.00915.68
7.0.190.0070.00915.16
7.0.180.0050.00914.97
7.0.170.0080.00515.14
7.0.160.0050.01115.18
7.0.150.0110.00415.13
7.0.140.0090.02417.46
7.0.130.0050.00815.38
7.0.120.0100.00415.11
7.0.110.0030.00915.12
7.0.100.0070.00915.15
7.0.90.0100.00515.25
7.0.80.0100.00615.16
7.0.70.0080.00515.23
7.0.60.0110.02816.80
7.0.50.0140.02716.16
7.0.40.0130.02016.10
7.0.30.0130.03216.21
7.0.20.0120.01916.04
7.0.10.0070.02016.27
7.0.00.0070.02816.26
5.6.400.0030.01215.03
5.6.390.0050.01014.88
5.6.380.0010.01314.78
5.6.370.0050.00815.29
5.6.360.0030.01015.06
5.6.350.0080.00814.99
5.6.340.0060.00915.02
5.6.330.0020.01415.03
5.6.320.0090.00614.95
5.6.310.0090.00915.22
5.6.300.0060.00915.00
5.6.290.0130.00515.16
5.6.280.0070.02917.10
5.6.270.0060.00715.25
5.6.260.0070.00814.97
5.6.250.0080.00815.07
5.6.240.0070.01015.02
5.6.230.0050.01115.06
5.6.220.0040.01314.96
5.6.210.0110.03016.95
5.6.200.0080.03416.15
5.6.190.0120.02616.76
5.6.180.0160.02316.86
5.6.170.0150.03016.77
5.6.160.0080.03416.92
5.6.150.0070.03516.08
5.6.140.0060.02216.18
5.6.130.0040.03616.08
5.6.120.0070.02016.88
5.6.110.0060.03516.97
5.6.100.0100.03017.03
5.6.90.0050.02217.02
5.6.80.0100.01616.61
5.6.70.0080.00815.27
5.6.60.0050.01015.18
5.6.50.0070.00914.96
5.6.40.0050.01115.00
5.6.30.0070.00914.92
5.6.20.0020.01214.90
5.6.10.0080.00815.01
5.6.00.0060.00914.89
5.5.380.0100.00715.10
5.5.370.0080.00715.00
5.5.360.0090.00715.17
5.5.350.0180.02616.67
5.5.340.0030.02015.84
5.5.330.0100.02216.68
5.5.320.0040.02016.73
5.5.310.0120.02616.94
5.5.300.0070.02315.98
5.5.290.0050.03415.94
5.5.280.0030.02116.92
5.5.270.0060.03616.96
5.5.260.0080.02416.89
5.5.250.0070.02717.01
5.5.240.0100.02316.60
5.5.230.0070.01115.13
5.5.220.0070.00914.97
5.5.210.0000.01514.68
5.5.200.0060.01114.73
5.5.190.0100.00315.04
5.5.180.0070.00914.90
5.5.170.0100.00614.90
5.5.160.0060.00815.10
5.5.150.0020.01415.11
5.5.140.0160.00215.01
5.5.130.0050.00914.98
5.5.120.0100.00714.80
5.5.110.0100.00614.97
5.5.100.0090.00614.89
5.5.90.0060.01015.12
5.5.80.0090.00614.89
5.5.70.0090.00814.91
5.5.60.0050.01214.81
5.5.50.0100.00514.87
5.5.40.0080.00815.08
5.5.30.0080.00914.84
5.5.20.0100.00914.87
5.5.10.0070.00814.93
5.5.00.0100.00714.99
5.4.450.0230.02414.81
5.4.440.0220.01814.79
5.4.430.0190.01814.86
5.4.420.0210.02714.93
5.4.410.0210.01614.68
5.4.400.0190.02214.83
5.4.390.0110.02114.72
5.4.380.0110.01914.65
5.4.370.0140.01814.71
5.4.360.0190.02414.77
5.4.350.0120.02114.71
5.4.340.0200.02214.83
5.4.330.0030.00812.63
5.4.320.0180.01514.66
5.4.310.0150.01514.84
5.4.300.0140.02814.70
5.4.290.0210.02514.73
5.4.280.0120.03114.67
5.4.270.0160.02614.71
5.4.260.0160.02514.71
5.4.250.0180.02714.73
5.4.240.0160.01914.62
5.4.230.0240.02314.68
5.4.220.0180.01914.70
5.4.210.0170.01514.85
5.4.200.0190.01614.68
5.4.190.0190.01414.78
5.4.180.0220.02314.84
5.4.170.0170.01914.72
5.4.160.0190.01814.74
5.4.150.0140.02414.72
5.4.140.0190.01613.83
5.4.130.0200.02213.97
5.4.120.0150.01713.82
5.4.110.0180.02613.91
5.4.100.0180.01413.76
5.4.90.0180.02213.93
5.4.80.0150.02113.79
5.4.70.0180.02313.76
5.4.60.0200.02213.92
5.4.50.0130.02613.89
5.4.40.0130.02813.87
5.4.30.0130.02713.87
5.4.20.0150.02913.85
5.4.10.0170.01713.87
5.4.00.0190.02713.67
5.3.290.0200.03813.85
5.3.280.0260.03213.73
5.3.270.0270.02713.91
5.3.260.0150.02513.91
5.3.250.0260.03413.71
5.3.240.0130.02713.72
5.3.230.0180.02813.84
5.3.220.0250.02213.77
5.3.210.0250.03913.62
5.3.200.0220.02513.77
5.3.190.0230.02113.82
5.3.180.0250.03813.88
5.3.170.0200.02313.85
5.3.160.0220.02913.85
5.3.150.0270.02013.84
5.3.140.0270.02313.71
5.3.130.0290.02713.82
5.3.120.0270.03313.73
5.3.110.0340.03513.86
5.3.100.0260.01913.59
5.3.90.0250.03913.44
5.3.80.0230.02713.38
5.3.70.0200.02213.47
5.3.60.0210.02113.48
5.3.50.0250.03313.33
5.3.40.0280.01613.49
5.3.30.0250.03513.31
5.3.20.0280.03313.30
5.3.10.0250.01713.19
5.3.00.0210.02213.01
5.2.170.0180.02212.32
5.2.160.0170.03312.43
5.2.150.0200.03212.37
5.2.140.0200.03212.32
5.2.130.0180.03012.29
5.2.120.0190.02112.27
5.2.110.0200.03412.35
5.2.100.0200.01712.30
5.2.90.0220.02812.28
5.2.80.0230.03112.23
5.2.70.0220.02912.22
5.2.60.0160.02112.28
5.2.50.0210.01912.22
5.2.40.0180.01512.25
5.2.30.0220.02912.21
5.2.20.0230.02112.15
5.2.10.0180.02512.15
5.2.00.0200.01912.11
5.1.60.0200.02111.93
5.1.50.0200.02811.82
5.1.40.0200.02611.84
5.1.30.0190.02911.96
5.1.20.0190.01911.84
5.1.10.0240.01311.91
5.1.00.0160.01911.75
5.0.50.0100.02311.36
5.0.40.0130.02311.36
5.0.30.0090.02011.36
5.0.20.0130.01211.36
5.0.10.0090.01611.36
5.0.00.0090.01911.36
4.4.90.0110.00811.36
4.4.80.0120.00811.36
4.4.70.0110.01711.36
4.4.60.0120.01711.36
4.4.50.0080.01611.36
4.4.40.0100.01711.36
4.4.30.0100.01011.36
4.4.20.0130.01311.36
4.4.10.0090.01411.36
4.4.00.0090.01911.36
4.3.110.0100.01111.36
4.3.100.0100.01211.36
4.3.90.0100.01011.36
4.3.80.0080.02711.36
4.3.70.0140.00711.36
4.3.60.0090.01511.36
4.3.50.0070.01311.36
4.3.40.0090.02211.36
4.3.30.0020.01411.36
4.3.20.0050.01111.36
4.3.10.0080.01711.36
4.3.00.0090.01211.36

preferences:
38.91 ms | 400 KiB | 5 Q