3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = 'spa'; $res = ( $el == 'a' ) ? 'Это a' : (( $el == 'span' ) ? 'Это span' : 'Это не a и не span'); var_dump( $res ); //

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.0130.00318.33
8.3.50.0110.00420.15
8.3.40.0070.00719.83
8.3.30.0070.00718.59
8.3.20.0050.00224.18
8.3.10.0040.01424.66
8.3.00.0050.00226.16
8.2.180.0060.01525.92
8.2.170.0120.00318.81
8.2.160.0090.00622.96
8.2.150.0050.00225.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00026.16
8.2.110.0090.00020.97
8.2.100.0040.00817.91
8.2.90.0040.00417.50
8.2.80.0000.00818.62
8.2.70.0000.00817.38
8.2.60.0000.00817.93
8.2.50.0070.00318.07
8.2.40.0000.00817.85
8.2.30.0080.00017.96
8.2.20.0000.00720.36
8.2.10.0040.00417.63
8.2.00.0040.00419.22
8.1.280.0140.00025.92
8.1.270.0000.00823.99
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00317.35
8.1.230.0120.00019.48
8.1.220.0040.00417.76
8.1.210.0060.00318.77
8.1.200.0060.00317.13
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0080.00018.57
8.1.160.0040.00418.92
8.1.150.0070.00018.63
8.1.140.0000.00717.38
8.1.130.0000.00718.74
8.1.120.0000.00717.41
8.1.110.0000.00717.34
8.1.100.0040.00417.43
8.1.90.0040.00417.46
8.1.80.0030.00617.48
8.1.70.0000.00617.40
8.1.60.0050.00317.52
8.1.50.0040.00417.43
8.1.40.0000.00717.47
8.1.30.0090.00017.46
8.1.20.0190.00517.57
8.1.10.0170.00717.41
8.1.00.0190.00617.38
8.0.300.0040.00420.78
8.0.290.0040.00416.63
8.0.280.0000.00920.17
8.0.270.0000.00817.96
8.0.260.0000.00618.40
8.0.250.0030.00316.81
8.0.240.0000.00816.81
8.0.230.0070.00016.86
8.0.220.0070.00016.81
8.0.210.0020.00516.77
8.0.200.0050.00216.91
8.0.190.0000.00716.87
8.0.180.0000.00816.72
8.0.170.0040.00416.74
8.0.160.0110.00016.84
8.0.150.0000.00816.64
8.0.140.0220.00016.80
8.0.130.0150.00716.71
8.0.120.0120.00816.83
8.0.110.0120.00916.70
8.0.100.0160.00416.75
8.0.90.0170.00316.79
8.0.80.0120.00916.80
8.0.70.0220.00016.70
8.0.60.0130.00916.86
8.0.50.0150.00516.81
8.0.30.0220.00016.74
8.0.20.0160.00616.83
8.0.10.0150.01016.93
7.4.330.0000.00515.55
7.4.320.0000.00716.59
7.4.300.0030.00316.58
7.4.290.0020.00516.36
7.4.280.0070.00016.38
7.4.270.0250.00016.38
7.4.260.0150.00916.48
7.4.250.0140.01016.55
7.4.240.0090.00516.43
7.4.230.0070.01416.57
7.4.220.0160.00016.43
7.4.210.0150.00016.34
7.4.200.0140.00316.38
7.4.190.0150.00516.59
7.4.180.0160.00016.63
7.4.160.0070.00716.59
7.4.150.0180.00016.48
7.4.140.0130.00016.44
7.4.130.0190.00016.28
7.4.120.0120.00616.44
7.4.110.0120.00316.18
7.4.100.0100.00516.47
7.4.90.0130.00616.42
7.4.80.0120.00816.39
7.4.70.0150.00516.40
7.4.60.0170.00316.33
7.4.50.0150.00416.29
7.4.40.0160.00516.12
7.4.30.0140.00416.35
7.4.20.0120.00616.21
7.4.10.0220.00016.38
7.4.00.0160.00416.36

preferences:
54.62 ms | 400 KiB | 5 Q